package com.af.security.mgt.account.password.token;

import com.af.security.mgt.user.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author : zhenyun.su
 * @since : 2019/6/25
 */

@Repository
public interface UserPasswordTokenRepository extends JpaRepository<UserPasswordToken, Long> {

    UserPasswordToken findByToken(String token);

    UserPasswordToken findByUser(User user);
}
